package com.mallcloud.mall.app.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mallcloud.mall.app.api.entity.AppXglSaleBillModel;
import com.mallcloud.mall.app.api.entity.dto.AppOrderXglPageDTO;
import com.mallcloud.mall.app.service.AppXglSaleBillService;
import com.mallcloud.mall.common.core.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "app-星光里柜组收银信息")
@RestController
@AllArgsConstructor
@RequestMapping("/app/xglSaleBill")
public class AppXglSaleBillController {

	private final AppXglSaleBillService appXglSaleBillService;

	@ApiOperation("星光里柜组收银汇总分页")
	@GetMapping("/page")
	public R<IPage<AppXglSaleBillModel>> page(Page page, AppOrderXglPageDTO dto) {
		return R.ok(appXglSaleBillService.pageSaleBill(page, dto));
	}
}
